package com.mmlc.meimei.lichengkongjian.customview;

import android.content.Context;
import android.util.AttributeSet;
import android.view.ViewTreeObserver;
import android.widget.LinearLayout;
import android.widget.RadioGroup;

import java.util.ArrayList;
import java.util.List;

public class PayMethodLinearLayout extends LinearLayout
{
	public PayMethodLinearLayout(Context context, AttributeSet attrs) {
		super(context, attrs);
		setOrientation(RadioGroup.VERTICAL);
		getViewTreeObserver().addOnPreDrawListener(new ViewTreeObserver.OnPreDrawListener() {
			@Override
			public boolean onPreDraw() {
				getViewTreeObserver().removeOnPreDrawListener(this);

				return false;
			}
		});
	}

	public List<String>  nameList = new ArrayList<>();
	public void addItem(String payName) {
		nameList.add(payName);
	}
}
